package com.study.entity;  


/**  
 *  实体类
 */  
public class Admin  
{  
    /********** 实体的属性 ***********/  
     //主键 自增
    private int id;
    private String username;  //用户名
    private String password;  //密码
    /********** 构造方法 ***********/  
    public Admin() {  
      
    }  
  
    public Admin(String username, String password) {  
        this.username = username;  
        this.password = password;  
    }  
  
    /********** get/set 方法 ***********/  
    
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getUsername() {  
        return username;  
    }  
  
    public void setUsername(String username) {  
        this.username = username;  
    }
    
      
    public String getPassword() {  
        return password;  
    }  
  
    public void setPassword(String password) {  
        this.password = password;  
    }
    
      

	@Override
	public String toString() {
		return "Admin [id=" + id 
				+ ", username=" + username
				+ ", password=" + password
				+ "]";
    }
}